<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<%@ include file="/static/commons/ecside.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>${title}</title>
		<script type="text/javascript" src="${ctx}/static/scripts/check_all.js"></script>
		<script type="text/javascript">
			function init(){
				//document.getElementById("ec_ecs_export_iframe").style.height = "0px";
				parent.waiting_stop();
			}
			function changeStyle(obj){
			  	ec_showContent(obj,"700px");
			}
		</script>
	</head>
	<body onload="init()">
			<ec:table items="list" var="role" title="" width="100%"
				retrieveRowsCallback="process" filterRowsCallback="process"
				maxRowsExported="1000" pageSizeList="15,30,50,all" useAjax="false"
				rowsDisplayed="15" sortable="false" filterable="false"
				resizeColWidth="true" classic="true" minHeight="200"
				excludeParameters="checkAll,ROLE_ID_,id"
				toolbarContent="extend status|pagejump|navigation|pagesize|refresh"
				action="${ctx}/role/list">
				<ec:row>
					<ec:column property="ROLE_ID_"
						title="<input type='checkbox' name='checkAll' onclick='check_all(this.form,this.form.id)'>"
						style="text-align:center;width:34px;" sortable="false">
						<input type='checkbox' value='${role.role_id}' name='id' id="id"
							onclick="check_item(this.form,this.form.id)" ></input>
					</ec:column>
					<ec:column property="serial" title="序号" style="text-align:center;width:30px;">${GLOBALROWCOUNT}</ec:column>
					<ec:column property="role_name" title="角色名称"><a href="javascript:void(0)" onclick="parent.view('${role.role_id }')">${role.role_name}</a></ec:column>
					<ec:column property="user_list" title="角色成员" style="width:700px;" tipTitle="${role.user_list}" sortable="false">
						<div title="" style="width:700px;" class='ellipsis' onclick="changeStyle(this)">
							${role.user_list}
						</div>
					</ec:column>
					<ec:column property="status" title="用户状态" style="text-align:center;width:90px;" columnId="status_${v.user_id}">
						<c:if test="${role.status == 2}">
							<span style="color: red;">停用</span>
						</c:if>
						<c:if test="${role.status == 1}">
							<span style="color: green;">启用</span>
						</c:if>
					</ec:column>
				</ec:row>
			</ec:table>
	</body>
</html>